import Home from './components/Home.vue';
import News from './components/News.vue';
import Detail from './components/Detail.vue';
import Content from './components/Content.vue';
import Sport from './components/Sport.vue';
import Vuex from './components/Vuex.vue';
const routes = [
    {
      path:'/home',
      component:Home,
      children:[
        {
          path:'sport',
          component:Sport
        }
      ]
    },
    {
      path:'/news',
      component:News
    },
    {
      path:'/detail/:id',
      component:Detail,
      name:'detail'
    },
    {
      path:'/content',
      component:Content,
     
    },
    {
      path:'/vuex',
      component:Vuex,
    },
    {
      path:'**',
      redirect: '/vuex'
    },
    
  ];

  export default routes;